package com.zy.server.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张鑫
 * @since 2020-11-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_userlog")
@AllArgsConstructor
@NoArgsConstructor
public class Userlog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer uid;

    private String content;

    private Date ctime;

    /**
     * 标记位 1注册 2购买会员 3完成做题
     */
    private int flag;

    public Userlog(Integer uid, int flag, String content) {
        this.uid = uid;
        this.flag = flag;
        this.content = content;

    }


}
